Skip to content

Fix building when SPIRV is disabled#8408

Merged
damyanp merged 2 commits intomicrosoft:mainfrom
damyanp:nospirvfix
Apr 27, 2026
Merged

Fix building when SPIRV is disabled#8408
damyanp merged 2 commits intomicrosoft:mainfrom
damyanp:nospirvfix

Conversation

@damyanp
Copy link
Copy Markdown
Member

@damyanp damyanp commented Apr 26, 2026

Fixes build break introduced by ec9d97a (#8365), which referenced hlsl::GetVKBufferPointerAlignment and m_vkBufferPointerTemplateDecl unconditionally.

Fixes build break introduced by ec9d97a (microsoft#8365),
which referenced hlsl::GetVKBufferPointerAlignment and
m_vkBufferPointerTemplateDecl unconditionally.

Co-authored-by: Copilot <[email protected]>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 26, 2026

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff ec9d97a98b083c757b2832da50984e72f4189f3b 5c6417ad9cf60ce46d8144c792e7d91a93f3914c -- tools/clang/lib/Sema/SemaHLSL.cpp
View the diff from clang-format here.
diff --git a/tools/clang/lib/Sema/SemaHLSL.cpp b/tools/clang/lib/Sema/SemaHLSL.cpp
index e953758b..7df68f5a 100644
--- a/tools/clang/lib/Sema/SemaHLSL.cpp
+++ b/tools/clang/lib/Sema/SemaHLSL.cpp
@@ -7484,7 +7484,8 @@ bool HLSLExternalSource::MatchArguments(
             TemplateName(m_vkBufferPointerTemplateDecl), TemplateArgs, 2,
             m_context->getTypeDeclType(Spec));
 #else
-        // The IOP_Vk* opcodes are only reachable when ENABLE_SPIRV_CODEGEN is defined.
+        // The IOP_Vk* opcodes are only reachable when ENABLE_SPIRV_CODEGEN is
+        // defined.
         llvm_unreachable("vk:: pointer cast intrinsics require SPIR-V codegen");
 #endif // ENABLE_SPIRV_CODEGEN
       } else {
  • Check this box to apply formatting changes to this branch.

@damyanp damyanp requested a review from s-perron April 26, 2026 01:55
@damyanp damyanp merged commit 0921e36 into microsoft:main Apr 27, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants